{include file="header"}
<style>
    .left-nav {
    overflow: scroll;
}
::-webkit-scrollbar {
    width: 0px;
    height: 10px;
    background-color: rgb(255, 255, 255);
}
</style>
<!-- 顶部开始 -->
<div class="container">
    <div class="logo"><a href="{:url('admin/index/index')}">后台管理</a>
    </div>
    <div class="left_open"> <i title="展开左侧栏" class="iconfont">&#xe699;</i>
    </div>
    <ul class="layui-nav right" lay-filter="">
        {if config('debug.name')==1}
        <li class="layui-nav-item to-index"><a href="javascript:;" class="del_t" url="{:url('admin/api/debug',array('id'=>0))}" name="确定要关闭调试模式吗？">关闭DEBUG</a>
        {else/}
        <li class="layui-nav-item to-index"><a href="javascript:;" class="del_t" url="{:url('admin/api/debug',array('id'=>1))}" name="确定要打开调试模式吗？">开启DEBUG</a>
        {/if}
        <li class="layui-nav-item to-index"><a href="javascript:;" class="del_t" url="{:url('admin/api/update')}" name="确定要清除缓存吗？">清除缓存</a>
        </li>
        <li class="layui-nav-item"> <a href="javascript:;">{:user('username')}</a>
            <dl class="layui-nav-child">
                <!-- 二级菜单 -->
                <dd><a class="del_t" url="{:url('admin/login/logout')}" name="确定要退出吗？">退出</a>
                </dd>
            </dl>
        </li>
        <li class="layui-nav-item to-index"><a href="/" target="_blank">前台首页</a>
        </li>
    </ul>
</div>
<!-- 顶部结束 -->
<!-- 中部开始 -->
<!-- 左侧菜单开始 -->
<div class="left-nav">
    <div id="side-nav">
        <ul id="nav">
            {foreach name=":fun_S('cateAdmin',array('open'=>1,'tid'=>0),'px desc','1000',1)" item="v" key="k"}
            <li {if $v.lianjie==1 }class="open" {/if}>
                <a href="javascript:;"> <i class="iconfont">{$v.ico}</i>  <cite>{$v.name}</cite>
                    <i class="iconfont nav_right">{if $v.lianjie == 1}&#xe6a6;{else /}&#xe6a7;{/if}</i>
                </a>
                <ul class="sub-menu" {if $v.lianjie==1 }style="display: block;" {/if}>
                    {volist name=":fun_S('cateAdmin',array('open'=>1,'tid'=>$v['id']),'px desc','1000',1)" id="vo"}
                    <li><a _href="{$vo.lianjie}"><i class="iconfont">{$vo.ico}</i><cite>{$vo.name}</cite></a>
                    </li>
                    {/volist}
                </ul>
            </li>
            {/foreach}
            <li>
                <a href="javascript:;"> <i class="iconfont">&#xe75f;</i>  <cite>已安装插件</cite>
                    <i class="iconfont nav_right">&#xe6a7;</i>
                </a>
                <ul class="sub-menu">
                    {volist name=":fun_S('addons',array(),'time desc','1000',1)" id="vo"}
                    {if $vo.set}
                    <li><a _href="{$vo.set}"><i class="iconfont">&#xe6a7;</i><cite>{$vo.title}</cite></a></li>
                    {/if}
                    {/volist}
                </ul>
            </li>
            {:hook('adminindex')}
        </ul>
    </div>
</div>
<!-- <div class="x-slide_left"></div> -->
<!-- 左侧菜单结束 -->
<!-- 右侧主体开始 -->
<div class="page-content">
    <div class="layui-tab tab" lay-filter="xbs_tab" lay-allowclose="false">
        <ul class="layui-tab-title">
            <li class="home"><i class="layui-icon">&#xe68e;</i>后台首页</li>
        </ul>
        <div class="layui-tab-content">
            <div class="layui-tab-item layui-show">
                <iframe src='{:url("admin/index/admin")}' frameborder="0" scrolling="yes" class="x-iframe"></iframe>
            </div>
        </div>
    </div>
</div>
<div class="page-content-bg"></div>
<!-- 右侧主体结束 -->
<!-- 中部结束 -->
{include file="footer"}